package com.atguigu.spring5;

public class Book {

    private String bname;

    private String bauthor;

    private String address;

    // set方法注入
    public void setBname(String bname) {
        this.bname = bname;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    // 有参构造注入
    /*public Book(String bname) {
        this.bname = bname;
    }*/

    public void testDemo() {
        System.out.println(bname + "::" + bauthor + "::" + address);
    }
}
